<?php
/**
 * Created by PhpStorm.
 * User: lphwxl
 * Date: 2018/7/11
 * Time: 16:09
 */

namespace App\Model;


use Illuminate\Database\Eloquent\Model;

class Task extends Model
{
    protected $table = 'task';

    public $appends = ['cash_money'];
    public $hidden = ['money'];

    public function imageList(){
        return $this->hasMany(Images::class,'task_id','id');
    }

    public function getCashMoneyAttribute(){
        return ($this->money) / 100;
    }



}